package com.wanbangee.marksystem.service.imp;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.wanbangee.marksystem.dao.MClassDao;
import com.wanbangee.marksystem.dao.MExamDao;
import com.wanbangee.marksystem.entities.MClass;
import com.wanbangee.marksystem.entities.MExam;
import com.wanbangee.marksystem.service.ExamListService;

@Service
public class ExamListServiceImpl implements ExamListService {
	@Autowired
	private MExamDao mExamDao;
	@Autowired
	private MClassDao mClassDao;
	
	
	@Override
	public List<MClass> selectExamByClaId(Integer claId) {
		return mClassDao.selectExamByClaId(claId);
	}

	@Override
	public List<MExam> selectExamBySchId(Integer schId) {
		return mExamDao.selectExamBySchId(schId);
	}

}
